package com.mshop.fw.util;

import java.lang.reflect.InvocationTargetException;

import org.apache.log4j.Logger;


/**
 * 
 * 
 * Title:
 * 
 * Description:
 * 
 * Copyright: Copyright (c) 2008
 * 
 * @author haoxz11
 * @created Mar 7, 2008 1:33:39 PM
 * @version $Id: BeanUtils.java,v 1.1 2008/03/26 06:24:07 airsou Exp $
 */
public class BeanUtils {

	private static Logger log = Logger.getLogger(BeanUtils.class);

	public static void copyProperties(Object dest, Object source) {
		try {
			org.apache.commons.beanutils.BeanUtils.copyProperties(dest, source);

		} catch (IllegalAccessException e) {
			e.printStackTrace();
			log.error(e);
		} catch (InvocationTargetException e) {
			e.printStackTrace();
			log.error(e);
		} catch (IllegalArgumentException e) {
			e.printStackTrace();
			log.error(e);
		}
	}
}
